home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 4 / BBS in a Box - Macintosh - Volume IV (January 1992) (BBS in a Box).iso / Files / Prog / T / Terminal 2.1 Source Code.cpt / Terminal 2.01 Source / Terminal ƒ / Sources / Text.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-31  |  561 b   |  20 lines  |  [TEXT/KAHL]

  1. /*
  2.     Terminal 2.0
  3.     "Text.h"
  4. */
  5.  
  6. typedef struct {
  7.     Byte    *text;        /* Pointer to text buffer */
  8.     long    size;        /* Size of text buffer */
  9.     long    firstChar;    /* Offset of first character in text */
  10.     long    newChar;    /* Offset of next character location */
  11.     long    length;        /* Length of text */
  12.     long    lines;        /* Number of lines in text */
  13.     long    viewChar;    /* Offset of character corresponding... */
  14.     long    viewLine;    /* ...to this line */
  15. } TextRecord;
  16.  
  17. void AddNewCharacter (TextRecord *, Byte);
  18. Boolean    FindLine (TextRecord *, long, Byte *);
  19. Byte RemoveCharacter (TextRecord *);
  20.